import router from '@/router'

import pinia from '@/store'
import { createCore } from '@/views/Editor/core'
import { myPlugin } from '@/views/testPlugin'
import ArcoVue from '@arco-design/web-vue'
// 额外引入图标库
import ArcoVueIcon from '@arco-design/web-vue/es/icon'
import { createApp } from 'vue'
import App from './App.vue'
import IconFontPlugin from './plugins/iconFontPlugin'
import '@arco-design/web-vue/dist/arco.css'
// CSS
import '@unocss/reset/tailwind-compat.css'
import 'virtual:uno.css'
import 'virtual:svg-icons-register'
import './style.less'

import './mock'
import '@/utils/request'

const core = createCore()

core.use(myPlugin)
const app = createApp(App)
app.use(pinia)
app.use(router)
app.use(ArcoVue)
app.use(core)
app.use(ArcoVueIcon)
app.use(IconFontPlugin)
app.mount('#app')
